package com.dxb.yomall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.dxb.common.utils.PageUtils;
import com.dxb.yomall.product.entity.CategoryEntity;
import com.dxb.yomall.product.vo.Catalog2VO;

import java.util.List;
import java.util.Map;

/**
 * 
 *
 * @author daixinbao
 * @email 1065808217@qq.com
 * @date 2021-01-05 22:26:07
 */
public interface CategoryService extends IService<CategoryEntity> {

    PageUtils queryPage(Map<String, Object> params);

    /**
     * 查询所有分类及子分类，以树形结构组装
     * @return 所有分类（树形结构）
     */
    List<CategoryEntity> listWithTree();

    Long[] findCategoryPath(Long catelogId);

    void updateCascade(CategoryEntity category);

    List<CategoryEntity> getLevel1Categories();

    Map<String, List<Catalog2VO>> getCatalogJson();
}

